﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace client.Settings
{
    public class UserSettings
    {
        private static ConfigSettings _conf = Managers.Serialization.deserializationPref(new ConfigSettings());
        public static string UserName
        {
            get
            {
                string result = "";
                if(!string.IsNullOrEmpty(_conf.getLogin))
                {
                    result = _conf.getLogin;
                }
                return result;
            }
            set
            {
                _conf.getLogin = value;
            }
        }
        public static bool loadWithSystem
        {
            get
            {
                return _conf.getLoadWithSystem;
            }
            set
            {
                _conf.getLoadWithSystem = value;
            }
        }
        public static bool startMinimized
        {
            get
            {
                return _conf.getStartMinimized;
            }
            set
            {
                _conf.getStartMinimized = value;
            }
        }
        public static bool enableNotifyWindow
        {
            get
            {
                return _conf.getEnableNotifyWindow;
            }
            set
            {
                _conf.getEnableNotifyWindow = value;
            }
        }
        public static int tempThreshold
        {
            get
            {
                return _conf.Temp;
            }
            set
            {
                _conf.Temp = value;
            }
        }
        public static int pressureThreshold
        {
            get
            {
                return _conf.Pressure;
            }
            set
            {
                _conf.Pressure = value;
            }
        }
        public static string Language
        {
            get
            {
                return _conf.getUserCultureInfo;
            }
            set
            {
                _conf.getUserCultureInfo = value;
            }
        }
        public static int timeDelay
        {
            get
            {
                return _conf.getTimeDelay;
            }
            set
            {
                _conf.getTimeDelay = value;
            }
        }

    }
}
